/**
 * 图片管理
 */
const ProjectRequest = require("../project/project_request.js");
const Url = require("../utils/url.js");

function getShare(callback){
  const URL = Url.newInstance("/spread/img/get");
  URL.setPara('type', 'Share')
  ProjectRequest.getRequest(URL.get(), callback);
}

function getTicket(callback) {
  const URL = Url.newInstance("/spread/img/get");
  URL.setPara('type', 'Use')
  ProjectRequest.getRequest(URL.get(), callback);
}

function getProxy(callback) {
  const URL = Url.newInstance("/spread/img/get");
  URL.setPara('type', 'Proxy')
  ProjectRequest.getRequest(URL.get(), callback);
}

/**
 * exports
 */
module.exports = {
  getShare, getTicket, getProxy
};